import request from '@/util/request'

const timeout = 60 * 1000

export function insertOrUpdateLinkageConditionToDevice(data) {
  return request({
    url: '/iot/device/linkage/condition/insertOrUpdateToDevice',
    method: 'post',
    timeout: timeout,
    data
  })
}

export function insertOrUpdateLinkageConditionToServer(data) {
  return request({
    url: '/iot/device/linkage/condition/insertOrUpdateToServer',
    method: 'post',
    data
  })
}

export function listLinkageCondition(data) {
  return request({
    url: '/iot/device/linkage/condition/list',
    method: 'post',
    data
  })
}

